<?php

namespace app\stock\controller\Manage;

use think\Controller;
use think\Db;

class Recycle extends Controller
{
    // 模型
    protected $RecycleModel = null;

    public function __construct()
    {
        parent::__construct();

        $this->RecycleModel = model("Business.Business");
    }

    public function index()
    {
        // $applyid = $this->request->param('applyid', 0, 'trim');

        $RecycleData = $this->RecycleModel->where('deletetime', 'not null')->order('deletetime DESC')->select();

        if (!$RecycleData) {
            $this->error('暂无可回收客户');
        }

        $this->success('查询成功', null, $RecycleData);
    }
}
